home *** CD-ROM | disk | FTP | other *** search
/ .net (French) 1997 February / .net Magazine (FR) - Issue 04 - Feb 1997.iso / pc / partners / havas / win95 / isp.scp < prev    next >
Text File  |  1996-10-15  |  709b  |  43 lines

  1. ;
  2. ; This is a script file that demonstrates how
  3. ; to establish a PPP connection with a host
  4. ; that uses a menu system.
  5. ;
  6. ; A script file must have a 'main' procedure.
  7. ; All script execution starts with this 'main'
  8. ; procedure.
  9. ;
  10.  
  11.  
  12. ; Main entry point to script
  13. ;
  14. proc main
  15.  
  16.    ; Delay for 3 seconds first to allow host time
  17.    ; to send initial characters.
  18.  
  19.    delay 2
  20.    transmit "^M"
  21.  
  22.    ; Wait for the login prompt before entering
  23.    ; the user ID
  24.  
  25.    waitfor "Ser?"
  26.    transmit "hol"
  27.    transmit "^M"
  28.  
  29.    waitfor "name:"
  30.    transmit $USERID
  31.    transmit "^M"
  32.  
  33.    ; Enter the password
  34.  
  35.    waitfor "word:"
  36.    transmit $PASSWORD
  37.    transmit "^M"
  38.  
  39.    delay 2
  40.  
  41. endproc
  42.  
  43.